//
//  YKStatusTableViewCell.h
//  youkan
//
//  Created by 吴高烽 on 2018/10/17.
//  Copyright © 2018年 Honsintech. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WBStatusLayout.h"
@class YKStatusTableViewCell;
@protocol WBStatusCellDelegate;

/** 顶部提示 广告、热搜、大家都关注了 等对cell主要内容进行说明的 */
@interface YKStatusTitleView: UIView
/** 左侧标题Label */
@property (nonatomic ,strong) YYLabel *titleLabel;
/** 右侧关闭按钮 */
@property (nonatomic ,strong) UIButton *closeButton;
/** 父视图 */
@property (nonatomic ,weak) YKStatusTableViewCell *cell;

@end

@interface WBStatusProfileView : UIView
/** 左上角头像 */
@property (nonatomic ,strong) UIImageView *avatarView;
/** 左上角头像的右下角徽章标记 */
@property (nonatomic ,strong) UIImageView *avatarBadgeView;
/** 用户昵称 */
@property (nonatomic ,strong) YYLabel *nameLabel;
/** 发布源 来自：xxx */
@property (nonatomic ,strong) YYLabel *sourceLabel;
/** 头像左上角的背景（头像的皇冠） */
@property (nonatomic ,strong) UIImageView *backgroundImageView;
/** 下拉菜单按钮 */
@property (nonatomic ,strong) UIButton *arrowButton;
/** 关注功能按钮 */
@property (nonatomic ,strong) UIButton *followButton;
/** 用户认证类型 */
@property (nonatomic,assign) WBUserVerifyType verifyType;
/** 对应的cell */
@property (nonatomic ,weak) YKStatusTableViewCell *cell;

@end


@interface WBStatusCardView : UIView
/** <#注释#> */
@property (nonatomic ,strong) UIImageView *imageView;
/** <#注释#> */
@property (nonatomic ,strong) UIImageView *badgeImageView;
/** <#注释#> */
@property (nonatomic ,strong) YYLabel *label;
/** <#注释#> */
@property (nonatomic ,strong) UIButton *button;
/** <#注释#> */
@property (nonatomic ,weak) YKStatusTableViewCell *cell;

@end

@interface WBStatusToolbarView : UIView
/** <#注释#> */
@property (nonatomic ,strong) UIButton *repostButton;
/** <#注释#> */
@property (nonatomic ,strong) UIButton *commentButton;
/** <#注释#> */
@property (nonatomic ,strong) UIButton *likeButton;
/** <#注释#> */
@property (nonatomic ,strong) UIImageView  *repostImageView;
/** <#注释#> */
@property (nonatomic ,strong) UIImageView *commentImageView;
/** <#注释#> */
@property (nonatomic ,strong) UIImageView *likeImageView;
/** <#注释#> */
@property (nonatomic ,strong) YYLabel *repostLabel;
/** <#注释#> */
@property (nonatomic ,strong) YYLabel *commentLabel;
/** <#注释#> */
@property (nonatomic ,strong) YYLabel *likeLabel;
/** 设置渐变线 */
@property (nonatomic ,strong) CAGradientLayer *line1;
/** <#注释#> */
@property (nonatomic ,strong) CAGradientLayer *line2;
/** <#注释#> */
@property (nonatomic ,strong) CALayer *topLine;
/** <#注释#> */
@property (nonatomic ,strong) CALayer *bottomLine;
/** <#注释#> */
@property (nonatomic ,weak) YKStatusTableViewCell *cell;

//- (void)setWithLayout:(WBStatusLayout *)layout;
//
//- (void)setLiked:(BOOL )liked withAnimation:(BOOL)animation;

@end

@interface WBStatusTagView : UIView
/** <#注释#> */
@property (nonatomic ,strong) UIImageView *imageView;
/** <#注释#> */
@property (nonatomic ,strong) YYLabel *label;
/** <#注释#> */
@property (nonatomic ,strong) UIButton *button;
/** <#注释#> */
@property (nonatomic ,weak) YKStatusTableViewCell *cell;

@end


@interface WBStatusView : UIView
/** <#注释#> */
@property (nonatomic ,strong) UIView *contentView;
/** <#注释#> */
@property (nonatomic ,strong) YKStatusTitleView *titleView;
/** <#注释#> */
@property (nonatomic ,strong) WBStatusProfileView *profileView;
/** <#注释#> */
@property (nonatomic ,strong) YYLabel *textLabel;
/** <#注释#> */
@property (nonatomic ,strong) NSArray <UIView *> *picViews;
/** <#注释#> */
@property (nonatomic ,strong) UIView *retweetBackgroundView;
/** <#注释#> */
@property (nonatomic ,strong) YYLabel *retweetTextLabel;
/** <#注释#> */
@property (nonatomic ,strong) WBStatusCardView *cardView;
/** <#注释#> */
@property (nonatomic ,strong) WBStatusTagView *tagView;
/** <#注释#> */
@property (nonatomic ,strong) WBStatusToolbarView *toolbarView;
/** <#注释#> */
@property (nonatomic ,strong) UIImageView *vipBackgroundView;
/** <#注释#> */
@property (nonatomic ,strong) UIButton *menuButton;
/** <#注释#> */
@property (nonatomic ,strong) UIButton *followButton;
/** <#注释#> */
@property (nonatomic ,strong) WBStatusLayout *layout;
/** <#注释#> */
@property (nonatomic ,weak) YKStatusTableViewCell *cell;

@end


@interface YKStatusTableViewCell : UITableViewCell
/** <#注释#> */
@property (nonatomic ,weak) id<WBStatusCellDelegate> delegate;
/** <#注释#> */
@property (nonatomic ,strong) WBStatusView *statusView;

- (void)setLAyout:(WBStatusLayout *)layout;

@end


@protocol WBStatusCellDelegate <NSObject>
@optional
/// 点击了 Cell
- (void)cellDidClick:(YKStatusTableViewCell *)cell;
/// 点击了 Card
- (void)cellDidClickCard:(YKStatusTableViewCell *)cell;
/// 点击了转发内容
- (void)cellDidClickRetweet:(YKStatusTableViewCell *)cell;
/// 点击了Cell菜单
- (void)cellDidClickMenu:(YKStatusTableViewCell *)cell;
/// 点击了关注
- (void)cellDidClickFollow:(YKStatusTableViewCell *)cell;
/// 点击了转发
- (void)cellDidClickRepost:(YKStatusTableViewCell *)cell;
/// 点击了下方 Tag
- (void)cellDidClickTag:(YKStatusTableViewCell *)cell;
/// 点击了评论
- (void)cellDidClickComment:(YKStatusTableViewCell *)cell;
/// 点击了赞
- (void)cellDidClickLike:(YKStatusTableViewCell *)cell;
/// 点击了用户
- (void)cell:(YKStatusTableViewCell *)cell didClickUser:(YKUser *)user;
/// 点击了图片
- (void)cell:(YKStatusTableViewCell *)cell didClickImageAtIndex:(NSUInteger)index;
/// 点击了 Label 的链接
- (void)cell:(YKStatusTableViewCell *)cell didClickInLabel:(YYLabel *)label textRange:(NSRange)textRange;
@end
